$(function() {
	//提交修改
	$("#sub_btn").click(function() {
		var repairId = $("#repairId").val();
		var data = 'repairId=' + repairId;
		
		$("#sub_btn").button("处理中");
		$.post('/wx/property/repair/confirm/data', data, function(result) {

			if (result.resultCode == "0") {
				$("#sub_btn").button(result.datas);
				$("#sub_btn").attr("disabled",true);

				$("#errmsg").text(result.datas);
				$('#my-alert').modal({
					relatedTarget: this,
				});
				//setTimeout('location.href="javascript:history.back();"', 1000);
			} else {
				$("#sub_btn").button("确定");
				$("#errmsg").text(result.datas);
				$('#my-alert').modal({
					relatedTarget: this,
				});
			}
		});
	});
});

